package util;



import dao.DepartmentDao;
import entity.Departments;

import java.sql.SQLException;
import java.util.List;


public class Test2 {
    public static void main(String[] agrs) throws SQLException {
        DepartmentDao dd=new DepartmentDao() ;
        List<Departments> dts=dd.findAll();
        for (Departments d:dts){
            System.out.println(d);
        }
    }
}
